package com.missilike.biz.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.missilike.biz.IMilWithdrawRecordService;
import com.missilike.domain.response.MilWithdrawRecordInfo;
import com.missilike.repository.entity.MilWithdrawRecord;
import com.missilike.repository.mapper.MilWithdrawRecordMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author kin
 * @since 2019-01-08
 */
@Service
public class MilWithdrawRecordServiceImpl extends ServiceImpl<MilWithdrawRecordMapper, MilWithdrawRecord> implements IMilWithdrawRecordService {

    @Override
    public IPage<MilWithdrawRecordInfo> getList(Page<MilWithdrawRecordInfo> page,String account) {
        List<MilWithdrawRecordInfo> milWithdrawRecordList = baseMapper.selectWithdrawInfo(page,account);
        return page.setRecords(milWithdrawRecordList);
    }
}
